gdkkeys-win32: Perform keyboard layout substitution
authorDavid Hogan <david.q.hogan@gmail.com>
Wed, 12 Jan 2022 20:41:02 +0000 (21:41 +0100)
committerLuca Bacci <luca.bacci982@gmail.com>
Wed, 12 Jan 2022 20:44:28 +0000 (21:44 +0100)
commit7d6257cb1e1115c58b279f8357118091a24b2457
treef2230d1728aa03ea37b7e6041e07ca46ec3834f6
parentdb0234ecb44121bdce11398ea8a6f26b29849c46
gdkkeys-win32: Perform keyboard layout substitution

For some users, GetKeyboardLayoutNameA() returns an alias instead of the
fully resolved keyboard layout identifier. In that case, we have to
query the registry to resolve the alias before we can look up the DLL
path.

See comments under https://gitlab.gnome.org/GNOME/gtk/-/issues/4610
gdk/win32/gdkkeys-win32.c